home *** CD-ROM | disk | FTP | other *** search
- VERIFY(3I) Last changed: 1-6-98
-
-
- NNAAMMEE
- VVEERRIIFFYY - Verifies that a set of characters contains all characters in
- a string
-
- SSYYNNOOPPSSIISS
- VVEERRIIFFYY (([SSTTRRIINNGG==]_s_t_r_i_n_g,, [SSEETT==]_s_e_t [,,[BBAACCKK==]_b_a_c_k]))
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS, UNICOS/mk, and IRIX systems
-
- SSTTAANNDDAARRDDSS
- Fortran 90
-
- DDEESSCCRRIIPPTTIIOONN
- The VVEERRIIFFYY intrinsic function verifies that a set of characters
- contains all characters in a string by identifying the first character
- position in a string of characters that does not appear in a given set
- of characters. VVEERRIIFFYY accepts the following arguments:
-
- _s_t_r_i_n_g Must be of type character variable.
-
- _s_e_t Must be of type character variable, expression, or constant.
-
- _b_a_c_k Must be of type logical. If _b_a_c_k is omitted, a value of
- false is assumed.
-
- VVEERRIIFFYY is an elemental function. The name of this intrinsic cannot be
- passed as an argument.
-
- RREETTUURRNN VVAALLUUEESS
- The result is an integer.
-
- If _b_a_c_k is absent or is present with a value FFAALLSSEE and _s_t_r_i_n_g contains
- at least one character that is not in _s_e_t, the value of the result is
- the position of the leftmost character of _s_t_r_i_n_g that is not in _s_e_t.
-
- If _b_a_c_k is present with a value TTRRUUEE and if _s_t_r_i_n_g contains at least
- one character that is not in _s_e_t, the value of the result is the
- position of the rightmost character of _s_t_r_i_n_g that is not in _s_e_t.
-
- VVEERRIIFFYY returns 0 if each character in _s_t_r_i_n_g is in _s_e_t, or if the
- length of _s_t_r_i_n_g is 0.
-
- EEXXAAMMPPLLEESS
- Example 1: The statement VVEERRIIFFYY((''AABBBBAA'',, ''AA'')) returns the value 2.
-
- Example 2: The statement VVEERRIIFFYY((''AABBBBAA'',, ''AA'',, BBAACCKK==..TTRRUUEE..)) returns
- the value 3.
-
- Example 3: The statement VVEERRIIFFYY((''AABBBBAA'',, ''AABB'')) returns the value 0.
-
- SSEEEE AALLSSOO
- _I_n_t_r_i_n_s_i_c _P_r_o_c_e_d_u_r_e_s _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication SR-2138, for the
- printed version of this man page.
-
-